C code for PEGetMinimumSectionHeight and PESetMinimumSectionHeight

The following code demonstrates how to call the PEGetMinimumSectionHeight and PESetMinimumSectionHeight functions:

PEGetMinimumSectionHeight

short        sectionCode;                // The section we are interested in
short    minimumHeight;            // The minimum height for the section
sectionCode = PE_GRANDTOTALSECTION;    // Grand Total section
if (!PEGetMinimumSectionHeight(Job, sectionCode, &minimumHeight)){
    // Handle error
}

PESetMinimumSectionHeight

short        sectionCode;                // The section to be changed
short    minimumHeight;            // The new minimum height
sectionCode = PE_GROUPHEADER;        // Group Header section
minimumHeight = 2880;            // in twips
if (!PESetMinimumSectionHeight(Job, sectionCode, minimumHeight)){
    // Handle error
}


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com